package model;

public class Reference implements CommandParameter {

	private static final long serialVersionUID = 4806766371912986392L;
	private int address;

	public Reference(int address) {
		this.address = address;
	}

	public int getAddress() {
		return address;
	}

	@Override
	public boolean equals(Object other) {
		if (other instanceof Reference) {
			return ((Reference) other).getAddress() == this.getAddress();
		}
		return false;
	}
}
